#!/bin/bash

docker build --rm -t php-docker-dist:1.2 .

#docker rm -f php-docker-dist-run-01
# docker run -d \
# --name php-docker-dist-run-01 \
# -p 8002:80  \
# -e JH_DB_HOST=192.168.31.21 \
# -e JH_DB_PORT=3306 \
# -e JH_DB_DATABASE=php_eboss \
# -e JH_DB_USERNAME=php-dev \
# -e JH_DB_PASSWORD=jinghe \
# -e JH_REDIS_HOST=192.168.31.21 \
# -e JH_OAUTH_DEBUG=true \
# -e JAVA_MANAGE_SERVICE=192.168.31.249:8307 \
# -e JAVA_SHOP_SERVICE=192.168.31.249:8302 \
# -e JAVA_USER_SERVICE=192.168.31.249:8305 \
# -e JAVA_GOODS_SERVICE=192.168.31.249:8304 \
# -e JAVA_ORDER_SERVICE=192.168.31.249:8303 \
# -e JAVA_PAY_SERVICE=192.168.31.249:8308 \
# php-eboss:1.2

# docker rm -f php-eboss-run-01

# docker run -d \
# --name php-eboss-run-01 \
# -p 8104:80  \
# -e JH_DB_HOST=192.168.31.21 \
# -e JH_DB_PORT=3306 \
# -e JH_DB_DATABASE=php_eboss \
# -e JH_DB_USERNAME=php-dev \
# -e JH_DB_PASSWORD=jinghe \
# -e JH_REDIS_HOST=192.168.31.21 \
# -e JH_OAUTH_DEBUG=true \
# -e JAVA_MANAGE_SERVICE=192.168.31.242:8307 \
# -e JAVA_SHOP_SERVICE=192.168.31.242:8302 \
# -e JAVA_USER_SERVICE=192.168.31.242:8305 \
# -e JAVA_GOODS_SERVICE=192.168.31.242:8304 \
# -e JAVA_ORDER_SERVICE=192.168.31.242:8303 \
# -e JAVA_PAY_SERVICE=192.168.31.242:8308 \
# php-docker-dist:1.0
